<!DOCTYPE html>
<html>
<head>
<title>参数管理</title>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
	<div class="row">
		<div class="grid-btn">
			<form role="form" class="form-inline text-right">
			<input type="text" class="form-control" v-model="q.paramKey" @keyup.enter="query" placeholder="参数名">
			<a class="btn btn-default" @click="query">查询</a>

			<a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			<a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			<a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</form>
		</div>
		<table id="jqGrid"></table>
		<div id="jqGridPager"></div>
	</div>
	<div id="option_list" class="modal fade" data-backdrop="static" data-keyboard="false" aria-hidden="true">
		<div class="modal-dialog">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-title">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
						<h5>{{title}}</h5>
					</div>
					<div class="ibox-content">
						<form class="form-horizontal">
							<div class="form-group">
								<div class="col-sm-2 control-label">参数名</div>
								<div class="col-sm-10">
									<input type="text" class="form-control" v-model="config.paramKey" placeholder="参数名"/>
								</div>
							</div>
							<div :class="{'form-group':true,'has-error': errors.has('paramValue') }">
								<div class="col-sm-2 control-label">参数值</div>
								<div class="col-sm-10">
									<input type="text" v-validate="'required'" class="form-control" name="paramValue" v-model="config.paramValue" placeholder="参数值"/>
									<span v-show="errors.has('paramValue')"  class="help-block m-b-none"><i class="fa fa-times-circle"></i> {{ errors.first('paramValue') }}</span>
								</div>
							</div>
							<div class="form-group">
								<div class="col-sm-2 control-label">备注</div>
								<div class="col-sm-10">
									<input type="text" class="form-control" v-model="config.remark" placeholder="备注"/>
								</div>
							</div>
							<div class="form-group">
								<div class="col-sm-2 control-label"></div>
								<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
								<!--&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>-->
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>

<script src="${request.contextPath}/statics/js/modules/sys/config.js?_${.now?long}"></script>
</body>
</html>